<?php
/**
 * The template for displaying member pages.
 *
 *
 * Template Name: menu - The List
 */
 
  $tlset = get_option( 'tlset' );
  

get_header(); ?>

			
	<?php while ( have_posts() ) : the_post();
		$sbar = get_post_meta($post->ID, 'cro_sidebar', true);
		echo cro_headerimg($post->ID, 'page');				
	?>

			</div>
		</div>
	</div>

	<div class="mainbody">
		<div class="mainin">

	<div class="main singleitem sermonplay">				
		<div class="row singlepage singlepost">

			<?php
			$prq = get_post_meta($post->ID, 'cro_showpromo', true);
			$prw = get_post_meta($post->ID, 'cro_showpromowhat', true);
			 ?>

			<?php if ($sbar == 1) { ?>


				<div class="eight column">
					<?php get_template_part( 'public/tparts/content-podcast'); 
					$tag_list = get_the_tag_list( '', __( ', ', 'localize' ) );
					if (isset($tlset['link_pages'])){
						wp_link_pages();
					}
					comments_template('', ''); ?>
				</div>

				<div class="four column">
					<?php get_sidebar(); ?>
				</div>



			<?php } else { ?>
				<div class="twelve column">
					<?php get_template_part( 'public/tparts/content-podcast'); ?>
				</div>

			<?php } ?>			
		</div>

		<div class="cro_sermonplayer">
				<?php echo get_sermon_widget(); ?>
			</div>

	</div>

	<?php endwhile; // end of the loop. ?>


<?php get_footer(); ?>